package Game;

import java.awt.Graphics2D;
import java.awt.Image;
import java.util.Random;

public abstract class Ally extends AnimatedObject
{
	public enum AllyState
	{
		DEAD, 
		MOVING,
		IDLE,
		ATTACKING
	}
	
	public enum AllyType
	{
		CPI,
		Politic
	}
	
	AllyState state;
	AllyType type;
	
	EnergyBar lifeBar;
	
	int life;
	float velocity;
	
	boolean add_remove = false;
	
	static Random r = new Random();
	
	Image idle, moving, attacking, dead, paralyzed;
	
	final int id;
	
	public Ally(int x, int y, int w, int h, int id) 
	{
		super(x, y, w, h);
		
		this.id = id;
	}
	
	public abstract void Kill();
	
	public abstract void Attack();
	
	public void Draw(Graphics2D g2d) 
	{ 
		super.Draw(g2d);
		
		lifeBar.Draw(g2d, false);
	}
}
